/**
 * Copyright (c) 2022 Beijing Jiaotong University
 * PhotLab is licensed under [Open Source License].
 * You can use this software according to the terms and conditions of the [Open Source License].
 * You may obtain a copy of [Open Source License] at: [https://open.source.license/]
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *
 * See the [Open Source License] for more details.
 *
 * Author: Zhenjie Wei
 * Created: Mar. 13, 2023
 * Supported by: National Key Research and Development Program of China
 */

import { Disposable } from "@/common/disposable"
import { commandManager } from "@/common/cmd/manager"

export const fileManager = new class FileManager extends Disposable {
    constructor() {
        super()
        return
    }

    public activate() {
        commandManager.registerCommand("file.openFile", this.openFile)
        commandManager.registerCommand("file.saveFile", this.saveFile)
        commandManager.registerCommand("file.newFile", this.newFile)
        commandManager.registerCommand("file.closeFile", this.closeFile)
        return
    }

    public async openFile() {
        console.log("open file")
        return
    }

    public async saveFile() {
        console.log("save file")
        return
    }

    public async newFile() {
        console.log("new file")
        return
    }

    public async closeFile() {
        console.log("close file")
        return
    }
}